import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Dialogs 1.2
ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    menuBar: MenuBar {

    }
//    Image {
//        id: img
//        anchors.centerIn: parent
//        source: "image://myprovider/500/500/"
//        anchors.fill: parent

//    }
    Image{
        id: myImage
        width:parent.width
        height: parent.height - 40
        anchors.top: myBtn.top
        source: "image://images/abcd"
    }


    Button{
        id:myBtn
        width: 100
        height: 40
        text: "get Image"
        onClicked: {
            myBtn.text = "get Image ok"
            myImage.source = "image://images/abcs"
        }
    }
    Button{
        id:myBtn1
        width: 100
        height: 40
        anchors.left: myBtn.right
        text: "get Image"
        onClicked: {
            myBtn.text = "get Image ok"
            myImage.source = "image://images/abcd"
        }
    }
}


